import React, { Component } from 'react';
class ChildRef extends Component {
    state = { 
      name: 'zhangsan'
    } 
    say () {
      // 业务逻辑代码....
      const msg = '123@qq.com'
      console.log('hello world-父传子')
      return msg
    }
    render() { 
        return (<div>
          子组件
        </div>);
    }
}
 
export default ChildRef;